home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 46 / PC Gamer IT CD 46 2-2.iso / Ut / utdemo3dfx.exe / System / UWeb.u / WebResponse_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-09-15  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% gt2 HTML (Hyper Text Markup Language) Datei default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4b 24 63 6c 61 73 73 20 |........|K$class |
|00000010| 57 65 62 52 65 73 70 6f | 6e 73 65 20 65 78 70 61 |WebRespo|nse expa|
|00000020| 6e 64 73 20 4f 62 6a 65 | 63 74 0d 0a 09 6e 61 74 |nds Obje|ct...nat|
|00000030| 69 76 65 0d 0a 09 6e 6f | 65 78 70 6f 72 74 3b 0d |ive...no|export;.|
|00000040| 0a 0d 0a 76 61 72 20 70 | 72 69 76 61 74 65 20 6e |...var p|rivate n|
|00000050| 61 74 69 76 65 20 63 6f | 6e 73 74 20 69 6e 74 20 |ative co|nst int |
|00000060| 52 65 70 6c 61 63 65 6d | 65 6e 74 4d 61 70 5b 35 |Replacem|entMap[5|
|00000070| 5d 3b 09 2f 2f 20 54 4d | 61 70 3c 46 53 74 72 69 |];.// TM|ap<FStri|
|00000080| 6e 67 2c 20 46 53 74 72 | 69 6e 67 3e 21 0d 0a 76 |ng, FStr|ing>!..v|
|00000090| 61 72 20 63 6f 6e 73 74 | 20 63 6f 6e 66 69 67 20 |ar const| config |
|000000a0| 73 74 72 69 6e 67 20 49 | 6e 63 6c 75 64 65 50 61 |string I|ncludePa|
|000000b0| 74 68 3b 0d 0a 76 61 72 | 20 57 65 62 43 6f 6e 6e |th;..var| WebConn|
|000000c0| 65 63 74 69 6f 6e 20 43 | 6f 6e 6e 65 63 74 69 6f |ection C|onnectio|
|000000d0| 6e 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 62 53 65 |n;..var |bool bSe|
|000000e0| 6e 74 54 65 78 74 3b 20 | 2f 2f 20 75 73 65 64 20 |ntText; |// used |
|000000f0| 74 6f 20 77 61 72 6e 20 | 68 65 61 64 65 72 73 20 |to warn |headers |
|00000100| 61 6c 72 65 61 64 79 20 | 73 65 6e 74 0d 0a 76 61 |already |sent..va|
|00000110| 72 20 62 6f 6f 6c 20 62 | 53 65 6e 74 52 65 73 70 |r bool b|SentResp|
|00000120| 6f 6e 73 65 3b 0d 0a 0d | 0a 2f 2f 20 75 68 74 6d |onse;...|.// uhtm|
|00000130| 20 69 6e 63 6c 75 64 69 | 6e 67 0d 0a 6e 61 74 69 | includi|ng..nati|
|00000140| 76 65 20 66 69 6e 61 6c | 20 66 75 6e 63 74 69 6f |ve final| functio|
|00000150| 6e 20 53 75 62 73 74 28 | 73 74 72 69 6e 67 20 56 |n Subst(|string V|
|00000160| 61 72 69 61 62 6c 65 2c | 20 73 74 72 69 6e 67 20 |ariable,| string |
|00000170| 56 61 6c 75 65 2c 20 6f | 70 74 69 6f 6e 61 6c 20 |Value, o|ptional |
|00000180| 62 6f 6f 6c 20 62 43 6c | 65 61 72 29 3b 0d 0a 6e |bool bCl|ear);..n|
|00000190| 61 74 69 76 65 20 66 69 | 6e 61 6c 20 66 75 6e 63 |ative fi|nal func|
|000001a0| 74 69 6f 6e 20 43 6c 65 | 61 72 53 75 62 73 74 28 |tion Cle|arSubst(|
|000001b0| 29 3b 0d 0a 6e 61 74 69 | 76 65 20 66 69 6e 61 6c |);..nati|ve final|
|000001c0| 20 66 75 6e 63 74 69 6f | 6e 20 49 6e 63 6c 75 64 | functio|n Includ|
|000001d0| 65 55 48 54 4d 28 73 74 | 72 69 6e 67 20 46 69 6c |eUHTM(st|ring Fil|
|000001e0| 65 6e 61 6d 65 29 3b 0d | 0a 0d 0a 65 76 65 6e 74 |ename);.|...event|
|000001f0| 20 53 65 6e 64 54 65 78 | 74 28 73 74 72 69 6e 67 | SendTex|t(string|
|00000200| 20 54 65 78 74 2c 20 6f | 70 74 69 6f 6e 61 6c 20 | Text, o|ptional |
|00000210| 62 6f 6f 6c 20 62 4e 6f | 43 52 4c 46 29 0d 0a 7b |bool bNo|CRLF)..{|
|00000220| 0d 0a 09 69 66 28 21 62 | 53 65 6e 74 54 65 78 74 |...if(!b|SentText|
|00000230| 29 0d 0a 09 7b 0d 0a 09 | 09 53 65 6e 64 53 74 61 |)...{...|.SendSta|
|00000240| 6e 64 61 72 64 48 65 61 | 64 65 72 73 28 29 3b 0d |ndardHea|ders();.|
|00000250| 0a 09 09 62 53 65 6e 74 | 54 65 78 74 20 3d 20 54 |...bSent|Text = T|
|00000260| 72 75 65 3b 0d 0a 09 7d | 09 0d 0a 0d 0a 09 69 66 |rue;...}|......if|
|00000270| 28 62 4e 6f 43 52 4c 46 | 29 0d 0a 09 09 43 6f 6e |(bNoCRLF|)....Con|
|00000280| 6e 65 63 74 69 6f 6e 2e | 53 65 6e 64 54 65 78 74 |nection.|SendText|
|00000290| 28 54 65 78 74 29 3b 0d | 0a 09 65 6c 73 65 0d 0a |(Text);.|..else..|
|000002a0| 09 09 43 6f 6e 6e 65 63 | 74 69 6f 6e 2e 53 65 6e |..Connec|tion.Sen|
|000002b0| 64 54 65 78 74 28 54 65 | 78 74 24 43 68 72 28 31 |dText(Te|xt$Chr(1|
|000002c0| 33 29 24 43 68 72 28 31 | 30 29 29 3b 0d 0a 7d 0d |3)$Chr(1|0));..}.|
|000002d0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 46 61 69 6c |...funct|ion Fail|
|000002e0| 41 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 28 73 |Authenti|cation(s|
|000002f0| 74 72 69 6e 67 20 52 65 | 61 6c 6d 29 0d 0a 7b 0d |tring Re|alm)..{.|
|00000300| 0a 09 48 54 54 50 45 72 | 72 6f 72 28 34 30 31 2c |..HTTPEr|ror(401,|
|00000310| 20 52 65 61 6c 6d 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 | Realm);|..}....f|
|00000320| 75 6e 63 74 69 6f 6e 20 | 48 54 54 50 52 65 73 70 |unction |HTTPResp|
|00000330| 6f 6e 73 65 28 73 74 72 | 69 6e 67 20 48 65 61 64 |onse(str|ing Head|
|00000340| 65 72 29 0d 0a 7b 0d 0a | 09 48 54 54 50 48 65 61 |er)..{..|.HTTPHea|
|00000350| 64 65 72 28 48 65 61 64 | 65 72 29 3b 0d 0a 09 62 |der(Head|er);...b|
|00000360| 53 65 6e 74 52 65 73 70 | 6f 6e 73 65 20 3d 20 54 |SentResp|onse = T|
|00000370| 72 75 65 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |rue;..}.|...funct|
|00000380| 69 6f 6e 20 48 54 54 50 | 48 65 61 64 65 72 28 73 |ion HTTP|Header(s|
|00000390| 74 72 69 6e 67 20 48 65 | 61 64 65 72 29 0d 0a 7b |tring He|ader)..{|
|000003a0| 0d 0a 09 69 66 28 62 53 | 65 6e 74 54 65 78 74 29 |...if(bS|entText)|
|000003b0| 0d 0a 09 09 4c 6f 67 28 | 22 43 61 6e 27 74 20 73 |....Log(|"Can't s|
|000003c0| 65 6e 64 20 68 65 61 64 | 65 72 73 20 2d 20 61 6c |end head|ers - al|
|000003d0| 72 65 61 64 79 20 63 61 | 6c 6c 65 64 20 53 65 6e |ready ca|lled Sen|
|000003e0| 64 54 65 78 74 28 29 22 | 29 3b 0d 0a 0d 0a 09 43 |dText()"|);.....C|
|000003f0| 6f 6e 6e 65 63 74 69 6f | 6e 2e 53 65 6e 64 54 65 |onnectio|n.SendTe|
|00000400| 78 74 28 48 65 61 64 65 | 72 24 43 68 72 28 31 33 |xt(Heade|r$Chr(13|
|00000410| 29 24 43 68 72 28 31 30 | 29 29 3b 0d 0a 7d 0d 0a |)$Chr(10|));..}..|
|00000420| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 48 54 54 50 45 |..functi|on HTTPE|
|00000430| 72 72 6f 72 28 69 6e 74 | 20 45 72 72 6f 72 4e 75 |rror(int| ErrorNu|
|00000440| 6d 2c 20 6f 70 74 69 6f | 6e 61 6c 20 73 74 72 69 |m, optio|nal stri|
|00000450| 6e 67 20 44 61 74 61 29 | 0d 0a 7b 0d 0a 09 73 77 |ng Data)|..{...sw|
|00000460| 69 74 63 68 28 45 72 72 | 6f 72 4e 75 6d 29 0d 0a |itch(Err|orNum)..|
|00000470| 09 7b 0d 0a 09 63 61 73 | 65 20 34 30 30 3a 0d 0a |.{...cas|e 400:..|
|00000480| 09 09 48 54 54 50 52 65 | 73 70 6f 6e 73 65 28 22 |..HTTPRe|sponse("|
|00000490| 48 54 54 50 2f 31 2e 31 | 20 34 30 30 20 42 61 64 |HTTP/1.1| 400 Bad|
|000004a0| 20 52 65 71 75 65 73 74 | 22 29 3b 0d 0a 09 09 53 | Request|");....S|
|000004b0| 65 6e 64 54 65 78 74 28 | 22 3c 54 49 54 4c 45 3e |endText(|"<TITLE>|
|000004c0| 34 30 30 20 42 61 64 20 | 52 65 71 75 65 73 74 3c |400 Bad |Request<|
|000004d0| 2f 54 49 54 4c 45 3e 3c | 48 31 3e 34 30 30 20 42 |/TITLE><|H1>400 B|
|000004e0| 61 64 20 52 65 71 75 65 | 73 74 3c 2f 48 31 3e 49 |ad Reque|st</H1>I|
|000004f0| 66 20 79 6f 75 20 67 6f | 74 20 74 68 69 73 20 65 |f you go|t this e|
|00000500| 72 72 6f 72 20 66 72 6f | 6d 20 61 20 73 74 61 6e |rror fro|m a stan|
|00000510| 64 61 72 64 20 77 65 62 | 20 62 72 6f 77 73 65 72 |dard web| browser|
|00000520| 2c 20 70 6c 65 61 73 65 | 20 6d 61 69 6c 20 6a 61 |, please| mail ja|
|00000530| 63 6b 40 65 70 69 63 67 | 61 6d 65 73 2e 63 6f 6d |ck@epicg|ames.com|
|00000540| 20 61 6e 64 20 73 75 62 | 6d 69 74 20 61 20 62 75 | and sub|mit a bu|
|00000550| 67 20 72 65 70 6f 72 74 | 2e 22 29 3b 0d 0a 09 09 |g report|.");....|
|00000560| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 34 30 |break;..|.case 40|
|00000570| 31 3a 0d 0a 09 09 48 54 | 54 50 52 65 73 70 6f 6e |1:....HT|TPRespon|
|00000580| 73 65 28 22 48 54 54 50 | 2f 31 2e 31 20 34 30 31 |se("HTTP|/1.1 401|
|00000590| 20 55 6e 61 75 74 68 6f | 72 69 7a 65 64 22 29 3b | Unautho|rized");|
|000005a0| 0d 0a 09 09 48 54 54 50 | 48 65 61 64 65 72 28 22 |....HTTP|Header("|
|000005b0| 57 57 57 2d 61 75 74 68 | 65 6e 74 69 63 61 74 65 |WWW-auth|enticate|
|000005c0| 3a 20 62 61 73 69 63 20 | 72 65 61 6c 6d 3d 5c 22 |: basic |realm=\"|
|000005d0| 22 24 44 61 74 61 24 22 | 5c 22 22 29 3b 0d 0a 09 |"$Data$"|\"");...|
|000005e0| 09 53 65 6e 64 54 65 78 | 74 28 22 3c 54 49 54 4c |.SendTex|t("<TITL|
|000005f0| 45 3e 34 30 31 20 55 6e | 61 75 74 68 6f 72 69 7a |E>401 Un|authoriz|
|00000600| 65 64 3c 2f 54 49 54 4c | 45 3e 3c 48 31 3e 34 30 |ed</TITL|E><H1>40|
|00000610| 31 20 55 6e 61 75 74 68 | 6f 72 69 7a 65 64 3c 2f |1 Unauth|orized</|
|00000620| 48 31 3e 22 29 3b 0d 0a | 09 09 62 72 65 61 6b 3b |H1>");..|..break;|
|00000630| 0d 0a 09 63 61 73 65 20 | 34 30 34 3a 0d 0a 09 09 |...case |404:....|
|00000640| 48 54 54 50 52 65 73 70 | 6f 6e 73 65 28 22 48 54 |HTTPResp|onse("HT|
|00000650| 54 50 2f 31 2e 31 20 34 | 30 34 20 4f 62 6a 65 63 |TP/1.1 4|04 Objec|
|00000660| 74 20 4e 6f 74 20 46 6f | 75 6e 64 22 29 3b 0d 0a |t Not Fo|und");..|
|00000670| 09 09 53 65 6e 64 54 65 | 78 74 28 22 3c 54 49 54 |..SendTe|xt("<TIT|
|00000680| 4c 45 3e 34 30 34 20 46 | 69 6c 65 20 4e 6f 74 20 |LE>404 F|ile Not |
|00000690| 46 6f 75 6e 64 3c 2f 54 | 49 54 4c 45 3e 3c 48 31 |Found</T|ITLE><H1|
|000006a0| 3e 34 30 34 20 46 69 6c | 65 20 4e 6f 74 20 46 6f |>404 Fil|e Not Fo|
|000006b0| 75 6e 64 3c 2f 48 31 3e | 54 68 65 20 55 52 4c 20 |und</H1>|The URL |
|000006c0| 79 6f 75 20 72 65 71 75 | 65 73 74 65 64 20 77 61 |you requ|ested wa|
|000006d0| 73 20 6e 6f 74 20 66 6f | 75 6e 64 2e 22 29 3b 0d |s not fo|und.");.|
|000006e0| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 64 65 66 61 |...break|;...defa|
|000006f0| 75 6c 74 3a 0d 0a 09 09 | 62 72 65 61 6b 3b 0d 0a |ult:....|break;..|
|00000700| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00000710| 6e 20 53 65 6e 64 53 74 | 61 6e 64 61 72 64 48 65 |n SendSt|andardHe|
|00000720| 61 64 65 72 73 28 29 0d | 0a 7b 0d 0a 09 69 66 28 |aders().|.{...if(|
|00000730| 21 62 53 65 6e 74 52 65 | 73 70 6f 6e 73 65 29 0d |!bSentRe|sponse).|
|00000740| 0a 09 09 48 54 54 50 52 | 65 73 70 6f 6e 73 65 28 |...HTTPR|esponse(|
|00000750| 22 48 54 54 50 2f 31 2e | 31 20 32 30 30 20 4f 4b |"HTTP/1.|1 200 OK|
|00000760| 22 29 3b 0d 0a 09 48 54 | 54 50 48 65 61 64 65 72 |");...HT|TPHeader|
|00000770| 28 22 53 65 72 76 65 72 | 3a 20 55 6e 72 65 61 6c |("Server|: Unreal|
|00000780| 45 6e 67 69 6e 65 20 55 | 57 65 62 20 57 65 62 20 |Engine U|Web Web |
|00000790| 53 65 72 76 65 72 20 42 | 75 69 6c 64 20 22 24 43 |Server B|uild "$C|
|000007a0| 6f 6e 6e 65 63 74 69 6f | 6e 2e 4c 65 76 65 6c 2e |onnectio|n.Level.|
|000007b0| 45 6e 67 69 6e 65 56 65 | 72 73 69 6f 6e 29 3b 0d |EngineVe|rsion);.|
|000007c0| 0a 09 48 54 54 50 48 65 | 61 64 65 72 28 22 43 6f |..HTTPHe|ader("Co|
|000007d0| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|000007e0| 2f 68 74 6d 6c 22 29 3b | 0d 0a 09 48 54 54 50 48 |/html");|...HTTPH|
|000007f0| 65 61 64 65 72 28 22 22 | 29 3b 0d 0a 7d 0d 0a 0d |eader(""|);..}...|
|00000800| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 64 69 72 65 |.functio|n Redire|
|00000810| 63 74 28 73 74 72 69 6e | 67 20 55 52 4c 29 0d 0a |ct(strin|g URL)..|
|00000820| 7b 0d 0a 09 48 54 54 50 | 52 65 73 70 6f 6e 73 65 |{...HTTP|Response|
|00000830| 28 22 48 54 54 50 2f 31 | 2e 31 20 33 30 32 20 44 |("HTTP/1|.1 302 D|
|00000840| 6f 63 75 6d 65 6e 74 20 | 4d 6f 76 65 64 22 29 3b |ocument |Moved");|
|00000850| 0d 0a 09 48 54 54 50 48 | 65 61 64 65 72 28 22 4c |...HTTPH|eader("L|
|00000860| 6f 63 61 74 69 6f 6e 3a | 20 22 24 55 52 4c 29 3b |ocation:| "$URL);|
|00000870| 0d 0a 09 53 65 6e 64 54 | 65 78 74 28 22 3c 68 65 |...SendT|ext("<he|
|00000880| 61 64 3e 3c 74 69 74 6c | 65 3e 44 6f 63 75 6d 65 |ad><titl|e>Docume|
|00000890| 6e 74 20 4d 6f 76 65 64 | 3c 2f 74 69 74 6c 65 3e |nt Moved|</title>|
|000008a0| 3c 2f 68 65 61 64 3e 22 | 29 3b 0d 0a 09 53 65 6e |</head>"|);...Sen|
|000008b0| 64 54 65 78 74 28 22 3c | 62 6f 64 79 3e 3c 68 31 |dText("<|body><h1|
|000008c0| 3e 4f 62 6a 65 63 74 20 | 4d 6f 76 65 64 3c 2f 68 |>Object |Moved</h|
|000008d0| 31 3e 54 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 20 |1>This d|ocument |
|000008e0| 6d 61 79 20 62 65 20 66 | 6f 75 6e 64 20 3c 61 20 |may be f|ound <a |
|000008f0| 48 52 45 46 3d 5c 22 22 | 24 55 52 4c 24 22 5c 22 |HREF=\""|$URL$"\"|
|00000900| 3e 68 65 72 65 3c 2f 61 | 3e 2e 22 29 3b 0d 0a 7d |>here</a|>.");..}|
|00000910| 0d 0a 0d 0a 00 | |..... | |
+--------+-------------------------+-------------------------+--------+--------+